package br.com.estevam.sisfin.pages.cadastros;

import java.util.List;

import org.apache.tapestry5.ioc.annotations.Inject;

import br.com.estevam.sisfin.base.DefaultPage;
import br.com.estevam.sisfin.daos.interfaces.CepDAO;
import br.com.estevam.sisfin.entities.Cep;

public class CadastroCep extends DefaultPage {

	private Cep cep;

	@Inject
	private CepDAO cepDAO;

	@SuppressWarnings("unchecked")
	public List<Cep> getListCep(){
		return (List<Cep>) cepDAO.findAll();
	}

	public Cep getCep() {
		return cep;
	}

	public void setCep(Cep cep) {
		this.cep = cep;
	}
}
